import { createApp } from 'vue'

import App from './App.vue'
import router from './router'

// 导入在 plugins 中配置的 Pinia 实例
import pinia from './plugins/pinia'

// 导入 Element Plus 样式
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)

app.use(pinia)
app.use(router)

// 使用 Element Plus 并配置中文语言
app.use(ElementPlus, {
  locale: zhCn,
})

app.mount('#app')
